#define  _CRT_SECURE_NO_WARNINGS 1

#include "BinaryTree.h"

void TestBinaryTree()
{
	BTDataType str[] = "ABD###CE##F##";
	int i = 0;
	pBTNode root = CreateTree(str, &i);

	int size = BinaryTreeNodeSize(root);
	
	BTDataType* arr = PrevOrder(root);

	for (int i = 0; i < size; ++i)
	{
		printf("%c ", arr[i]);
	}
	printf("\n");

	BinaryTreeDestory(&root);
	free(arr);
	arr = NULL;
}

int main()
{
	TestBinaryTree();

	return 0;
}